import { HashRouter as Router, Switch, Route } from "react-router-dom";
import "./App.css";

import Page from "./components/Page";
import Detail from "./components/detail/Detail";

function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Route path="/" exact component={Page} />
          <Route path="/detail" exact component={Detail} />
        </Switch>
      </Router>
    </div>
  );
}

export default App;
